﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sysgeprava.Entities;
using Sysgeprava.Repository;
using Microsoft.Practices.Unity;

namespace Sysgeprava.BL
{
    public class HistControlBL:IHistControlBL
    {
        [Dependency]
        public IHistControlRepository histControlDAO { get; set; }

        public List<HIST_CONTROL> GetAllFromHistControl()
        {
            return histControlDAO.GetAllFromHistControl();
        }

        public HIST_CONTROL GetAllFromHistControlById(int id)
        {
            return histControlDAO.GetAllFromHistControlById(id);
        }

        public void AddHistControl(HIST_CONTROL histControl)
        {
            histControlDAO.AddHistControl(histControl);
        }

        public void UpdateHistControl(HIST_CONTROL histControl)
        {
            histControlDAO.UpdateHistControl(histControl);
        }
    }
}
